import request from '@/common/request.js'

// 查询物资请购列表(APP)
export function getPurchaseList(data) {
	return request({
		url: '/business/material/purchase/listForApp',
		method: 'post',
		data
	})
}


// 新增船舶维修项目
export function addWorkOrderList(query) {
  return request({
    url: '/business/fix/workOrder/add',
    method: 'post',
    data: query
  })
}

// 新增物资请购
export function AddPurchaseList(query) {
  return request({
    url: '/business/material/purchase/add',
    method: 'post',
    data: query
  })
}
// 物资请购详情
export function getPurchaseDetail(query) {
  return request({
    url: '/business/material/purchase/detail',
    method: 'post',
    data: query
  })
}


// 审批物资请购
export function approvePurchase(query) {
  return request({
    url: '/business/material/purchase/approve',
    method: 'post',
    data: query
  })
}

// 确认采购完成
export function completePurchase(query) {
  return request({
    url: '/business/material/purchase/complete',
    method: 'post',
    data: query
  })
}
